// @ts-ignore

 
import { api } from '@/utils/api';

/** 新增库存-设备库存管理表数据 POST /inventoryDeviceInfo/add */
export async function inventoryDeviceInfoAdd(
  body: BIZAPI.InventoryDeviceInfoCreateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function inventoryDeviceInfoAdd(
  body: BIZAPI.InventoryDeviceInfoCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function inventoryDeviceInfoAdd(
  body: BIZAPI.InventoryDeviceInfoCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function inventoryDeviceInfoAdd(
  body: BIZAPI.InventoryDeviceInfoCreateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/inventoryDeviceInfo/add`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResult>(`/app/inventoryDeviceInfo/add`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 删除库存-设备库存管理表数据 POST /inventoryDeviceInfo/delete */
export async function inventoryDeviceInfoDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function inventoryDeviceInfoDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function inventoryDeviceInfoDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function inventoryDeviceInfoDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/inventoryDeviceInfo/delete`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResult>(`/app/inventoryDeviceInfo/delete`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取库存-设备库存管理表数据 POST /inventoryDeviceInfo/get */
export async function inventoryDeviceInfoGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultInventoryDeviceInfoEntity>;

export async function inventoryDeviceInfoGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultInventoryDeviceInfoEntity>>;

export async function inventoryDeviceInfoGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultInventoryDeviceInfoEntity>;

export async function inventoryDeviceInfoGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultInventoryDeviceInfoEntity>(`/app/inventoryDeviceInfo/get`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultInventoryDeviceInfoEntity>(`/app/inventoryDeviceInfo/get`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取库存-设备库存管理表VO数据 POST /inventoryDeviceInfo/getVo */
export async function inventoryDeviceInfoGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultInventoryDeviceInfoResp>;

export async function inventoryDeviceInfoGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultInventoryDeviceInfoResp>>;

export async function inventoryDeviceInfoGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultInventoryDeviceInfoResp>;

export async function inventoryDeviceInfoGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultInventoryDeviceInfoResp>(`/app/inventoryDeviceInfo/getVo`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultInventoryDeviceInfoResp>(`/app/inventoryDeviceInfo/getVo`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取库存-设备库存管理表分页数据 POST /inventoryDeviceInfo/page */
export async function inventoryDeviceInfoPage(
  body: BIZAPI.InventoryDeviceInfoQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageInventoryDeviceInfoEntity>;

export async function inventoryDeviceInfoPage(
  body: BIZAPI.InventoryDeviceInfoQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageInventoryDeviceInfoEntity>>;

export async function inventoryDeviceInfoPage(
  body: BIZAPI.InventoryDeviceInfoQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageInventoryDeviceInfoEntity>;

export async function inventoryDeviceInfoPage(
  body: BIZAPI.InventoryDeviceInfoQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageInventoryDeviceInfoEntity>(`/app/inventoryDeviceInfo/page`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultIPageInventoryDeviceInfoEntity>(`/app/inventoryDeviceInfo/page`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 更新库存-设备库存管理表数据 POST /inventoryDeviceInfo/update */
export async function inventoryDeviceInfoUpdate(
  body: BIZAPI.InventoryDeviceInfoUpdateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function inventoryDeviceInfoUpdate(
  body: BIZAPI.InventoryDeviceInfoUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function inventoryDeviceInfoUpdate(
  body: BIZAPI.InventoryDeviceInfoUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function inventoryDeviceInfoUpdate(
  body: BIZAPI.InventoryDeviceInfoUpdateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/inventoryDeviceInfo/update`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResult>(`/app/inventoryDeviceInfo/update`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}

/** 获取库存-设备库存管理表VO分页数据 POST /inventoryDeviceInfo/voPage */
export async function inventoryDeviceInfoVoPage(
  body: BIZAPI.InventoryDeviceInfoQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageInventoryDeviceInfoResp>;

export async function inventoryDeviceInfoVoPage(
  body: BIZAPI.InventoryDeviceInfoQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageInventoryDeviceInfoResp>>;

export async function inventoryDeviceInfoVoPage(
  body: BIZAPI.InventoryDeviceInfoQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageInventoryDeviceInfoResp>;

export async function inventoryDeviceInfoVoPage(
  body: BIZAPI.InventoryDeviceInfoQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageInventoryDeviceInfoResp>(`/app/inventoryDeviceInfo/voPage`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      data: body,
      ...(options || {}),
      tupleResponse: true
    });
  }

  return api<BIZAPI.IResultIPageInventoryDeviceInfoResp>(`/app/inventoryDeviceInfo/voPage`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: body,
    ...(options || {})
  });
}
